package com.yidusoft.service.impl;

import com.yidusoft.dao.SecOrgMapper;
import com.yidusoft.domain.SecOrg;
import com.yidusoft.service.SecOrgService;
import com.yidusoft.core.AbstractService;
import com.yidusoft.utils.TreeNode;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;


/**
 * Created by CodeGenerator on 2017/07/16.
 */
@Service
@Transactional
public class SecOrgServiceImpl extends AbstractService<SecOrg> implements SecOrgService {
    @Resource
    private SecOrgMapper secOrgMapper;

   public List<TreeNode> getTree(){

        return secOrgMapper.getTree();
    }

}
